<div id="statistics">
    <div class="dashboard">
        <div class="rounded_ul"><div class="rounded_ur">
                <h3><? __("What do you want to do?") ?></h3>
                <ul>
                    <li><? echo $html -> link(__("add article",true),array('controller'=>'articles','action'=>'add')); ?></li>
                    <li><? echo $html -> link(__("add news",true),array('controller'=>'news','action'=>'add')); ?></li>
                    <li><? echo $html -> link(__("edit users",true),array('controller'=>'users','action'=>'index')); ?></li>
                    <li><? echo $html -> link(__("edit comments",true),array('controller'=>'comments','action'=>'index')); ?></li>
                </ul>
            </div></div>
    </div>

    <div class="dashboard">
        <div class="rounded_ul"><div class="rounded_ur">
                <h3><? __("Last comments") ?></h3>
                <ul>
                    <?
                    foreach ($comments as $comment) {
                        echo "<li>".$html -> link($comment["Comment"]["title"],"/articles/".$time -> format("Y/m/d",$comment["Article"]["created"])."/".$comment["Article"]["seo_link"]."/#comment_".$comment["Comment"]["id"],array("target"=>"new"))."</li>";
                    }
                    ?>
                </ul>
            </div></div>
    </div>

    <div class="dashboard">
        <div class="rounded_ul"><div class="rounded_ur">
                <h3><? __("Last articles") ?></h3>
                <ul>
                    <?
                    foreach ($articles as $article) {
                        echo "<li>".$html -> link($article["Article"]["title"],"/articles/".$time -> format("Y/m/d",$article["Article"]["created"])."/".$article["Article"]["seo_link"],array("target"=>"new"))."</li>";
                    }
                    ?>
                </ul>
            </div></div>
    </div>

    <div class="dashboard">
        <div class="rounded_ul"><div class="rounded_ur">
                <h3><? __("Last news") ?></h3>
                <ul>
                    <?
                    foreach ($news as $news) {
                        echo "<li>".$html -> link($news["News"]["title"],"/news/".$time -> format("Y/m/d",$news["News"]["created"])."/".$news["News"]["seo_link"],array("target"=>"new"))."</li>";
                    }
                    ?>
                </ul>
            </div></div>
    </div>

    <div class="dashboard">
        <div class="rounded_ul"><div class="rounded_ur">
                <h3><? __("Last users") ?></h3>
                <ul>
                    <?
                    foreach ($users as $user) {
                        echo "<li>".$html -> link($user["User"]["username"],array('controller'=>'users','action'=>'edit',$user["User"]["id"]))."</li>";
                    }
                    ?>
                </ul>
            </div></div>
    </div>
</div>